package com.jxmcloud.business.cut.vo.toDb;

import com.jxmcloud.business.cut.dto.admin.AdminUserMergerDto;
import lombok.Data;


@Data
public class ToDbUserBase {
    private Integer uid = 0;            //主键ID
    private Long xlId = 0L;             //玄乐用户ID
    private String account = "";        //玄乐账号
    private String nickName = "";       //用户昵称
    private String icon = "";           //用户图像
    private Integer shopId = 0;         //门店Id
    private String shopName = "";       //门店名称
    private Integer sex = 0;            //性别
    private String phone = "";          //手机号
    private Integer createTime = 0;     //注册时间
    private String session = "";        // 登录session
    private Integer totalBuyNum = 0;    //购买数量
    private Integer status = 0;    //状态
    private String bannedTime = "";    //封禁时间

    public static ToDbUserBase pageData( AdminUserMergerDto dto){
        ToDbUserBase toDbUserBase = new ToDbUserBase();
        toDbUserBase.setUid(dto.getUid());
        toDbUserBase.setStatus(dto.getStatus());
        toDbUserBase.setAccount(dto.getAccount());
        toDbUserBase.setBannedTime(dto.getBannedTime());
        return toDbUserBase;
    }
}
